package com.tbsoft.ehr.service.staffile;

import java.io.IOException;
import java.util.List;

import com.tbsoft.ehr.model.AttachFile;
import com.tbsoft.ehr.model.StaffInfo;

public interface StaffFileService {

	StaffInfo addStaffFile(StaffInfo staffInfo,List<AttachFile> attachFileList) throws IOException;
	List<StaffInfo> getAllStaffFile();
	List<StaffInfo> getStaffFileByCondton(StaffInfo staffInfo,String dateFrom,String dateTo,int startIndex,int count);
	StaffInfo getStaffFileById(String id);
	List<StaffInfo> getStaffFileByStaffName(String name);
	//对档案信息进行逻辑删除
	void deleteStaff(StaffInfo staff);
	//更新档案
	StaffInfo updateStaffFile(StaffInfo staffInfo,List<AttachFile> attachFileList) throws IOException;
	//设为离职
	void resignatStaff(StaffInfo staff);
	//审核档案
	void auditStaff(StaffInfo staff);
	//获取档案总数
	int getStaffFileCount(StaffInfo staff, String entryDateFrom,String entryDateTo);
	//根据用户id查看档案
	StaffInfo getStaffFileByUserId(String id);
	
}
